# 编译器设置
CC = g++
CFLAGS = -Wall -std=c++11

# 目标文件
TARGETS = server client

# 默认目标
all: $(TARGETS)

# 编译 server
server: server.cpp
	$(CC) $(CFLAGS) -g -o server server.cpp

# 编译 client
client: client.cpp
	$(CC) $(CFLAGS) -g -o client client.cpp

# 清理生成的文件
clean:
	rm -f $(TARGETS)
